package com.github.tvbox.osc.ui.activity;


import android.os.Bundle;


import androidx.annotation.Nullable;

import androidx.fragment.app.FragmentManager;

import com.github.tvbox.osc.R;
import com.github.tvbox.osc.base.BaseActivity;


/**
 * @author pj567
 * @date :2020/12/23
 * @description: 搜索界面
 */
public class SearchActivity extends BaseActivity {

    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_fragment_container);
        FragmentManager fm = getSupportFragmentManager();
                fm.beginTransaction()
                .add(R.id.skin_fragment, SearchFragment.newInstance())
                .commitAllowingStateLoss();
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.layout_fragment_container;
    }

}